﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ManageSell-OutStockExcelUpload.aspx.vb" Inherits="WebForm_ManageSell_OutStockExcelUpload" MasterPageFile="~/WebForm/MasterPage.master" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <table width="98%" align="Center">
        <tr>
            <td align="center">
                <asp:Label ID="lblPage" runat="server" SkinID="title" meta:resourcekey="lblPage"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left">
                <fieldset align="left">
                    <legend>
                        <asp:Label ID="lblExcelUpdate" runat="server" meta:resourcekey="lblExcelUpdate"></asp:Label>
                    </legend>
                    <table>
                        <tr>                      
                             <td align="left">
                                <asp:Label ID="lblType" runat="server" meta:resourcekey="lblType"></asp:Label>
                                <asp:DropDownList ID="ddlType"  runat="server" AutoPostBack="true"></asp:DropDownList>&nbsp;&nbsp;
                                <asp:Label ID="lblYMonth" runat="server" meta:resourcekey="lblYMonth" Visible="false"></asp:Label>
                                <asp:DropDownList ID="ddlYMonth" runat="server" Visible="false"></asp:DropDownList>&nbsp;&nbsp;
                                 <asp:Label ID="lblCustomerGroup" runat="server" meta:resourcekey="lblCustomerGroup"></asp:Label>  
                                <asp:DropDownList ID="ddlCustomerGroup" runat="server"></asp:DropDownList>         
                             </td>
                        </tr>
                         <tr>          
                              <td align="left">
                                  <asp:Label ID="lblFile" runat="server" meta:resourcekey="lblFile"></asp:Label>            
                                  <asp:FileUpload ID="FileUpload1" runat="server" />
                                  <asp:Button ID="btnUpload" CssClass="button"  runat="server" meta:resourcekey="btnUpload" ValidationGroup="vsExcel" />
<%--                                  <asp:HyperLink ID="hlinklExcelUpdate" Font-Size="12px" meta:resourcekey="hlinklExcelUpdate" runat="server"></asp:HyperLink>
                               <asp:RequiredFieldValidator ID="rfvCustomerGroup" runat="server" meta:resourcekey="rfvCustomerGroup" SetFocusOnError="true" ValidationGroup="vsExcel" ControlToValidate="ddlCustomerGroup" Display="None"></asp:RequiredFieldValidator>
                           <asp:ValidationSummary ID="vs1" runat="server" ShowMessageBox="true" ShowSummary ="false" ValidationGroup="vsSSupload" />
     --%>                                </td>
                         </tr>
                           <div runat="server" id="divMatch">
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblColMatch" runat="server" meta:resourcekey="lblColMatch"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <My:MyGridView ID="gvMatch" runat="server" SkinID="pager" AllowHoverSelect="false">
                                <Columns>
                                   <asp:TemplateField HeaderText="No.">
                                       <ItemTemplate>
                                       <%#gvMatch.PageIndex * gvMatch.PageSize + gvMatch.Rows.Count + 1%>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:BoundField DataField="ColumnName" meta:resourcekey="bfColumnName" />
                                   <asp:TemplateField meta:resourcekey="bfFileColumnName" >
                                        <ItemTemplate>
                                            <asp:DropDownList ID="ddlFileColumnName" runat="server"></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                   </asp:TemplateField> 
                                </Columns>
                            </My:MyGridView>
                        </td>
                    </tr>
                    <tr id="Tr1" runat="server">
                        <td align="center" colspan="2">
                            <asp:Button ID="btnSent" CssClass="button" SkinID="button" runat="server" meta:resourcekey="btnSent" />
                            <ajaxToolkit:ConfirmButtonExtender ID="cbeUpload" runat="server" TargetControlID="btnSent" meta:resourcekey="cbeUpload"></ajaxToolkit:ConfirmButtonExtender> 

                        </td>
                    </tr>
                    </div>
                    </table>
                </fieldset>
            </td>
        </tr>
       <tr>
            <td>
                <asp:Panel ID="plUpdateErrorMessage" runat="server" meta:resourcekey="plUpdateErrorMessage">
                    <asp:Panel ID="pl" runat="server"  ScrollBars="Auto" Width="900px">
                    <table>
                            <tr>
                                <td align="center">
                                    <asp:GridView ID="gv" SkinID="pager" runat="server" AutoGenerateColumns="true" AllowPaging="true" meta:resourcekey="gv">
                                    </asp:GridView> 
                                </td>
                            </tr>
                    </table>
                    </asp:Panel>
                </asp:Panel>
            </td>
       </tr>

    </table>  
</asp:Content>